package com.zy.cat.entity.dtk;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("大淘客超级分类实体类")
public class SuperCategory implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "时间", example = "1")
    private String time;

	@ApiModelProperty(value = "状态码", example = "1")
    private int code;

	@ApiModelProperty(value = "消息", example = "1")
    private String msg;
	@ApiModelProperty(value = "返回数据信息", example = "1")
    private List<Category> data;
	
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel("大淘客超级分类二级分类实体类")
	public static class Category {
		@ApiModelProperty(value = "一级分类ID", example = "1")
		private int cid;

		@ApiModelProperty(value = "一级分类名称", example = "女装")
		private String cname;

		@ApiModelProperty(value = "一级分类图标", example = "https://")
		private String cpic;

		@ApiModelProperty(value = "一级分类下所有二级分类列表", example = "")
		private List<Subcats> subcategories;

		@Data
		@AllArgsConstructor
		@NoArgsConstructor
		@ApiModel("大淘客超级分类二级分类实体类")
		public static class Subcats {
			@ApiModelProperty(value = "二级分类ID", example = "98713")
			private int subcid;

			@ApiModelProperty(value = "二级分类名称", example = "T恤/短袖")
			private String subcname;

			@ApiModelProperty(value = "二级分类图标", example = "https://")
			private String scpic;
		}
	}

	
}
